from django.conf.urls import url

from App import views

urlpatterns = [
    url(r'^home/', views.home, name='home'),
    url(r'^market/', views.market, name='market'),
    url(r'^marketparams/(\d+)/(\d+)/(\d+)/', views.marketParams, name='marketParams'),
    url(r'^cart/', views.cart, name='cart'),
    url(r'^mine/', views.mine, name='mine'),
    url(r'^register/', views.user_register, name='register'),
    url(r'^checkname/', views.check_name, name='checkname'),
    url(r'^userlogin/', views.user_login, name='userlogin'),
    url(r'^userlogout/', views.user_logout, name='userlogout'),
    url(r'^addcart/', views.add_cart, name='addcart'),
    url(r'^subcart/', views.sub_cart, name='subcart'),
    url(r'^changeselected/', views.change_selected, name='changeselected'),
    url(r'^subtocart/', views.sub_to_cart, name='subtocart'),
    url(r'^allselect/', views.all_select, name='allselect'),
    url(r'^addtocart/', views.add_to_cart, name='addtocart'),
    url(r'^genarateorder/', views.genarate_order, name='genarateorder'),
    url(r'^orderinfo/(\d+)/', views.order_info, name='orderinfo'),
    url(r'^changestatus/', views.change_status, name='changestatus'),
    url(r'^notpayorder/', views.not_pay_order, name='notpayorder'),
    url(r'^haspayorder/', views.has_pay_order, name='haspayorder'),
]